<?php

namespace ApiWF\Model;
use Think\Model\ViewModel;

class UserMerchFavoritesViewModel extends ViewModel {

    public $viewFields = array(
        'UserMerchFavorites'=>array('*'),
        //'Users'=>array('listorder','status', '_on'=>'UserActivityFavorates.uid=Users.id'),
        'Merch'=>array('*', '_on'=>'UserMerchFavorites.mid=Merch.id'),
        'MerchCategoryF'=>array('name'=>'floor_name','_table'=>'wf_merch_category', '_on'=>'MerchCategoryF.cate_id=Merch.fid'),
        'MerchCategoryC'=>array('name'=>'category_name','_table'=>'wf_merch_category', '_on'=>'MerchCategoryC.cate_id=Merch.cid'),

        //wf_merch_category
    );


}